package com.xuan.modules.auth.controller;

import com.xuan.commons.api.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author renzhengxuan
 * @date 2021/5/16
 */
@RestController
//@Api(value = "授权",tags = "用户授权")
@RequestMapping("/auth")
public class AuthController {

    /**
     * 未授权拦截跳转
     * @return
     */
    @GetMapping("/401")
    public R noAuth(){
        return R.noAuto("未授权,请联系管理");
    }
}
